package com.liming.payment.service;

import com.liming.common.pojo.dto.payment.PaymentUpdateDTO;
import com.liming.common.pojo.dto.payment.PrepayDTO;
import com.liming.service.wx.pojo.vo.PrepayVO;

/**
 * @author liming
 * @date 2025/4/8
 */
public interface PaymentMircoService {

    /**
     * 微信二次支付
     *
     * @param orderId 订单ID
     * @return PrepayVO
     */
    PrepayVO wxRepay(Long orderId);

    /**
     * 微信预支付
     *
     * @param prepayDTO 预支付DTO
     * @return Boolean
     */
    Boolean wxPrepay(PrepayDTO prepayDTO);

    /**
     * 更新订单状态
     *
     * @param paymentUpdateDTO 更新订单状态DTO
     * @return Boolean
     */
    Boolean updateByOrderId(PaymentUpdateDTO paymentUpdateDTO);
}
